package com.jn.exam.oss.service;

import com.jn.exam.R;
import com.jn.exam.oss.entity.Student;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * @author 江南大学1033190417
 * @date 2022/3/25 13:40
 */
@Component
@FeignClient(value = "service-ucenter")
public interface UcenterService {

    @PostMapping("/ucenter/student/updateById")
    @ResponseBody
    public R updateById(@RequestBody Student student);

    @PostMapping("/ucenter/student/getStudentInIds")
    @ResponseBody
    public R getStudentInIds(@RequestBody List<String> ids);

}
